﻿@using FFLTask.GLB.Global.Enum
@model FFLTask.SRV.ViewModel.Task.EditModel
@if (Model.CurrentUser.Id == Model.Publisher.Id)
{
    if (Model.CurrentStatus.Stage == (int)Status.Publish
        || Model.CurrentStatus.Stage == (int)Status.Assign
        || Model.CurrentStatus.Stage == (int)Status.Own
        || Model.CurrentStatus.Stage == (int)Status.Quit)
    {
        @Html.Partial("EditColumns/_Subtitle", TaskProcess.Assign, new ViewDataDictionary { { "Edit", true } })
        @Html.EditorFor(m => m.Assign, "_AssignEditable")        
    }
}
else if (Model.Assign.CanOwn)
{
    if (Model.CurrentStatus.Stage == (int)Status.Publish
        || Model.CurrentStatus.Stage == (int)Status.Quit)
    {
        @Html.Partial("EditColumns/_Subtitle", FFLTask.GLB.Global.Enum.TaskProcess.Assign)
        @Html.Partial("EditColumns/_EditOwnable", Model)
    }
}
